package com.wr.hangzhounewlight.obj.database;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author yuanzhizhuo
 * createDate 2025/11/18
 */
@Data
@NoArgsConstructor
@TableName("output_slave")
public class OutputSlaveEntity {

    @TableId(type = IdType.AUTO)
    private Long id;
    private String outputMasterId;
    private String silo;
    private Double output;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime insertTime;

    /**
     * 新增产出详情
     *
     * @param outputMasterId 产出主表id
     * @param silo           料仓名称
     * @param output         产出量
     */
    public OutputSlaveEntity(String outputMasterId, String silo, Double output) {
        this.outputMasterId = outputMasterId;
        this.silo = silo;
        this.output = output;
    }

}
